#include "testWidget.h"

testWidget::testWidget(QWidget *parent) :QWidget(parent)
{
    init();
}

testWidget::~testWidget()
{

}

void testWidget::init()
{
    layout = new QVBoxLayout(this);
    QPushButton * button1 = new QPushButton("创新",this);
    QPushButton * button2 = new QPushButton("追求",this);
    QPushButton * button3 = new QPushButton("务实",this);
    layout->addWidget(button1);
    layout->addWidget(button2);
    layout->addWidget(button3);

    setStyleSheet(QString("background: rgba(%1,%2,%3,1)").arg(qrand()%255).arg(qrand()%255).arg(qrand()%255));
    setStyleSheet(QString("QPushButton{background-color: rgba(%4,%5,%6, 0.78);}").arg(qrand()%255).arg(qrand()%255).arg(qrand()%255));
    this->setLayout(layout);
    layout->setSpacing(0);
    layout->setMargin(0);
}
